import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routers: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Login',
        component: () => import('../components/Login.vue')
    },
    {
        path: '/SaveMoney',
        name: 'SaveMoney',
        component: () => import('../components/SaveMoney.vue')
    }
    ,
    {
        path: '/BuyMoney/:Sid',
        name: 'BuyMoney',
        component: () => import('../components/BuyMoney.vue') 

    }
]

const router=createRouter({
    history:createWebHistory(),
    routes:routers
})

export default router; // 导出router